<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<link type="text/css" rel="stylesheet" href="../skin/css/table.css"/>
<script type="text/javascript" src="../skin/js/jquery-1.7.1.js"></script>
<script >
    $(function () {
        if("${meg}".length>0) {
            alert("${meg}");
        }
    });
</script>
<head>
    <title>模块管理</title>
</head>
<body>
<jsp:include page="../functionModule.jsp"/>
<%--右边--%>
<div class="right_layout">
    <img src="../skin/images/left_hidden1_03.png" class="hidden_img"/>
    <div class="right_content">
        <div class="right_tit">
            <div class="right_back fyh"><a href="${pageContext.request.contextPath}/home?method=home">返回</a></div>
            <div class="tit_bg fyh">当前位置： 管理菜单 >>模块管理</div>
        </div>
        <div class="tabel_choose" style="padding: 10px 10px 0px 22px">
            <a href="${pageContext.request.contextPath}/permission?method=tiaozhuan"><input type="submit" value="增&nbsp;&nbsp;加" class="table_bt submit1"/><input type="submit" class="table_bt fyh submit1" value="功&nbsp;&nbsp;能"/></a>
            <a href="${pageContext.request.contextPath}/permission?method=give"><input type="submit" value="权&nbsp;&nbsp;限" class="table_bt submit2"/><input type="submit" class="table_bt fyh submit2" value="控&nbsp;&nbsp;制"/></a>
        </div>
        <div>
            <table class="tab">
                <tr>
                    <th width="10%" class="tab_th fyh"><input type="checkbox" class="tab_checkbox1"/>ID</th>
                    <th width="20%" class="tab_th fyh">模块</th>
                    <th width="10%" class="tab_th fyh">功能</th>
                    <th width="10%" class="tab_th fyh">功能详情</th>
                    <th width="10%" class="tab_th fyh">管理</th>
                    <th width="10%" class="tab_th fyh">删除</th>
                </tr>
                <c:forEach items="${functions}" var="function" varStatus="vs">
                    <tr>
                        <td class="tab_td fyh"><input type="checkbox" class="tab_checkbox"/><span class="tab_span">${function.id}</span></td>
                        <td class="tab_td fyh">${function.moduleName}</td>
                        <td class="tab_td fyh">${function.functionName}</td>
                        <td class="tab_td fyh">${function.functionDoc}</td>
                        <td class="tab_td fyh"><a href="${pageContext.request.contextPath}/permission?method=openFunction&id=${function.id}"><input type="button" class="tab_button" value="打开"/></a>
                            <a href="${pageContext.request.contextPath}/permission?method=closeFunction&id=${function.id}"><input type="button" class="tab_button" value="关闭"/></a></td>
                        <td class="tab_td fyh"><a href="${pageContext.request.contextPath}/permission?method=delFunction&id=${function.id}"><input type="button" class="tab_button" value="删除"/></a>
                    </tr>
                </c:forEach>
            </table>
            <form action="#" class="tab_form">

                <a href="${pageContext.request.contextPath}/permission?method=manageModule&page=${allPage}"><input type="button" class="table_button fyh" value="尾页" /></a>
                <a href="${pageContext.request.contextPath}/permission?method=manageModule&page=${pageNow+1}"><input type="button" class="table_button fyh" value="下一页" /></a>
                <a href="${pageContext.request.contextPath}/permission?method=manageModule&page=${pageNow-1}"><input type="button" class="table_button fyh" value="上一页" /></a>
                <a href="${pageContext.request.contextPath}/permission?method=manageModule&page=0&"><input type="button" class="table_button fyh" value="首页" /></a>
                <div class=" table_page fyh">
                    共&nbsp;<span>${count}</span>&nbsp;条记录&nbsp;&nbsp;&nbsp;&nbsp;
                    每页&nbsp;<span>10</span>&nbsp;条&nbsp;&nbsp;&nbsp;&nbsp;
                    页次：<input type="text" value="${pageNow}" class="table_pgnum"/>共${allPage}&nbsp;&nbsp;页
                </div>
            </form>
        </div>
    </div>
    <div class="floor fyh">软件开发：&nbsp;赣州科睿特软件技术有限公司(技术支持)&nbsp;&nbsp;&nbsp;&nbsp;客服电话：&nbsp;0797-8356742</div>
</div>
</body>
</html>

